class AddMainColumnsToProduct < ActiveRecord::Migration
  def change
    add_column :products, :code, :int
    add_column :products, :description, :string
    remove_column :products, :price
    add_column :products, :price, :decimal
    add_column :products, :actual_price, :decimal
    add_column :products, :sale_price, :decimal
    add_column :products, :size, :string
    add_column :products, :image, :string
    add_column :products, :manufacturer, :string
    add_column :products, :supplier, :string
  end
end
